using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Responses.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Responses
{
	public static class DictionarysExtend
{
		public static ResponseDictionarysDto ToResponseDto(this Dictionarys entity)
{			return new ResponseDictionarysDto
			{
				id = entity.DId,
				value = entity.DValue,
				dictionaryTypeId = entity.DDictionaryTypeId,
				parentId = entity.DParentId,
				createTime = entity.DCreateTime,
			};
		}
	}
}
